package com.fpost.util;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionMessage;
import org.apache.struts.action.ActionMessages;

public class ActionUtils {
	
	public static void setErrorMessage(HttpServletRequest request, String message) {
		ActionMessages actionMessages = new ActionMessages();
		actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(message));
		request.setAttribute(ActionMessages.GLOBAL_MESSAGE, actionMessages);	
	}
}
